package davidlauzon.activerecord;

import davidlauzon.activerecord.connection.ConnectionAdapter;
import davidlauzon.activerecord.connection.MysqlAdapter;
import davidlauzon.activerecord.models.DB;


public class MysqlActiveRecordTest extends ActiveRecordTest
{
    /*********************************************************************************************
     * VARIABLES
     *********************************************************************************************/
    private ConnectionAdapter _adapter;
    
    
    
    /*********************************************************************************************
     * INTERNAL METHODS
     *********************************************************************************************/
    @Override
    protected void setUp() {
        try {
            _adapter = new MysqlAdapter("test");
            DB.getInstance().setConnection( _adapter );
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
    

    @Override
    protected ConnectionAdapter getAdapter() {
        return _adapter;
    }
}
